
import request from '@/utils/request'

// 查询就餐列表
export function listMeal(query) {
  return request({
    url: '/system/meal/list',
    method: 'get',
    params: query
  })
}

// 查询就餐详细
export function getMeal(mealId) {
  return request({
    url: '/system/meal/' + mealId,
    method: 'get'
  })
}

// 新增就餐
export function addMeal(data) {
  return request({
    url: '/system/meal',
    method: 'post',
    data: data
  })
}

// 修改就餐
export function updateMeal(data) {
  return request({
    url: '/system/meal',
    method: 'put',
    data: data
  })
}

// 删除就餐
export function delMeal(mealId) {
  return request({
    url: '/system/meal/' + mealId,
    method: 'delete'
  })
}
